#pragma once
#include "enemy.h"
#include "../DeadlyShadowsLastHope\Game.h"
#include "../DeadlyShadowsLastHope\MessageSystem.h"
#include "../AnimationManager.h"	//add this 
#include "../DeadlyShadowsLastHope\EventSystem.h"

class CBasicEnemy : public CEnemy 
{
public:
	CBasicEnemy(void);
	~CBasicEnemy(void);

//Inherited from CEntity///////////////////////////////
	virtual void Update	(float fElapsedTime);
	virtual void Render	(void);
	virtual RECT GetRect(void) const;
	virtual bool CheckCollision( IEntity* pOther );
///////////////////////////////////////////////////////

	//SGD Wrappers
	CEventSystem*			m_pES;
	CSGD_Direct3D*			m_pD3D;
	CSGD_XAudio2*			m_pXA;
	CSGD_TextureManager*	m_pTM;
	CMessageSystem*			m_pMS;
	CAnimationManager*		m_pAM;	//add this
	CAnimationMenu			m_cAniInfo;	//add this

		//Inherited from CEnemy
virtual	void HandleEvent(CNEvent* pEvent);
	bool Init(CEntity* pTarget,int x,int y,int speedset);
	//Getters & Setters
	void SetHealth	(int nHealth){ m_nHealth = nHealth; }
	int GetHealth(void){return m_nHealth;}
	bool GetFacing	(void){ return m_bFaceing; }
	void SetFacing	(bool face){ m_bFaceing=face; }

protected:
	bool		m_bFaceing;
	int			m_nHealth;
	float		m_fTimer;
	float		m_fAttackTimer;
	bool		m_battack;
	CEntity*	m_pTarget;
	int m_nSpeedoffset;
};

